﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Windows;

namespace CPPEI.Coolzon.Event.NCL
{
    /// <summary>
    /// 显示放大镜
    /// </summary>
    public class NCLShowMagnifierEvent : NCLEvent
    {
        /// <summary>
        /// 是否启用
        /// </summary>
        public bool IsEnable { get; set; }

        /// <summary>
        /// 滚动场景名称
        /// </summary>
        public string SceneName { get; set; }

        /// <summary>
        /// 放大率
        /// </summary>
        public double Rate { get; set; }

        /// <summary>
        /// 放大的位置X
        /// </summary>
        public double DestPointX { get; set; }
        /// <summary>
        /// 放大的位置Y
        /// </summary>
        public double DestPointY { get; set; }

        /// <summary>
        /// 持续时间
        /// </summary>
        public double Duration { get; set; }

        /// <summary>
        /// 放大的半径
        /// </summary>
        public double DestRadius { get; set; }

        public NCLShowMagnifierEvent(bool isEnable,
            string sceneName,
            double rate,
            double destPointX,
            double destPointY,
            double destRadius,
            double duration)
        {
            IsEnable = isEnable;
            SceneName = sceneName;
            Rate = rate;
            DestPointX = destPointX;
            DestPointY = destPointY;
            this.Duration = duration;
            this.DestRadius = destRadius;
        }
    }
}
